package com.lilike.music;

import com.lilike.music.ss.service.impl.TestService;
import com.lilike.music.ss.service.impl.UserService;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

import javax.annotation.Resource;

/**
 * @author lilike
 *
 */
@SpringBootApplication
@MapperScan("com.lilike.music.*.mapper")
public class SsApplication implements CommandLineRunner {
	@Resource
	UserService userService;
	public static void main(String[] args) {
		SpringApplication.run(SsApplication.class, args);
	}

	@Override
	public void run(String... args) throws Exception {
		userService.test();
	}
}
